package homework5;

import java.util.Scanner;
//求数组的平均值

public class T2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = new int[5];
        while (sc.hasNextInt()) {
            for (int i = 0; i < arr.length; i++)
                arr[i] = sc.nextInt();
            System.out.println("平均值为" + avg(arr));
        }

        sc.close();
    }

    public static double avg(int[] arr) {
        double sum = 0;
        for (int j : arr) {
            sum += j;
        }
        return sum / arr.length;
    }
}
